.auto_container {
  width: 100%;
}

.text-up {
  text-transform: uppercase;
}

.text-fw {
  font-weight: 700;
}

.nopadding {
  padding-left: 0;
  padding-right: 0;
}

.padding100 {
  padding: 1rem 0;
}

.center {
  text-align: center;
}

.row {
  margin: 0;
}

.navbar {
  border-radius: 0;
  margin-bottom: 0;
}

.navbar-nav {
  font-size: 0.12rem !important;
}

// ? header
#header {

  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 9999;
  .navbar-nav {
    a {
      font-weight: 700;
      color: #000;

      &:hover {
        color: #1ecbc6;
        background-color: tra;
      }
    }
  }
}

// ? about
#about {
  padding: 1rem 0 0.9rem 0;

  p {
    font-size: .3rem;
  }

  .content {
    font-size: .16rem;
    color: #787878;
    margin: .4rem 0 .3rem 0;
  }

  .img {
    display: flex;
    justify-content: center;
  }
}

// ? more 
#more {
  .nopadding {
    position: relative;

    .layer {
      position: absolute;
      top: 0;
      background-color: rgba(0, 0, 0, 0.8);
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: .5rem;
      color: #fff;
      opacity: 0;
      transition: all .5s;
    }

    &:hover .layer {
      opacity: 1;
    }
  }



  img {
    width: 100%;
    height: 100%;
  }

  .more_btn {
    height: 1rem;
    text-align: center;
    line-height: 1rem;
    background-color: #f5f5f5;
    font-size: .12rem;
    color: #8e8e8e;
  }
}

// ? skills
#skills {
  position: relative;
  // height: 5.7rem;
  background-color: #f8f9f9;

  .content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    // width: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    b {
      font-size: .3rem;
      margin-bottom: .3rem;
    }

    .item {
      width: 100%;

      p {
        font-size: .12rem;

        span {
          margin-left: .16rem;
        }

        margin-bottom: .2rem;
      }

      .line {
        position: relative;
        width: 100%;
        height: .04rem;
        background-color: #d8d8d8;

        &::after {
          position: absolute;
          top: 0;
          left: 0;
          content: '';
          display: block;
          width: 75%;
          height: 100%;
          background-color: #10c9c3;
        }
      }
    }

    .item:nth-child(3) {
      margin: .4rem 0;

      .line::after {
        width: 90%;
      }
    }

    .item:nth-child(4) {
      .line::after {
        width: 65%;
      }
    }

    .more-btn {
      display: none;
    }
  }
}

// ? icons
#icons {
  padding: 1rem 0;
  background-color: #10c9c3;

  .row {
    display: flex;
    justify-content: space-between;
  }

  .item {
    // width: 100%;
    // height: 100%;
    width: 2.4rem;
    height: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;

    i {
      font-size: .4rem;
      margin-right: .2rem;
    }

    .text {
      display: flex;
      flex-direction: column;
      justify-content: center;

      b {
        font-size: .18rem;
      }

      p {
        font-size: .12rem;
      }
    }
  }
}

// ? footer
#footer {
  padding: .9rem 00;
  background-color: #000;
  font-size: .15rem;
  color: #bcbcbc;

  a {
    font-size: .15rem;
    color: #bcbcbc;
  }

  b {
    font-size: .18rem;
  }

  .items {
    height: .9rem;
    margin-bottom: .2rem;
  }
}


// 1400 1400/1200 * 100  

// 1200   100px            1rem

// 1000 1000/1200  *100

// 600    50px

// 超大
@media screen and (max-width:1920px) {
  html {
    font-size: 116px !important;
  }
}

// pc
@media screen and (max-width:1200px) {
  html {
    font-size: 100px !important;
  }
}

// bootstrap 导航栏两边交叠bug 数值具体看f12调试
// @media screen and (max-width:1338px) {
//   .navbar-nav {
//     margin-right: 45px;
//   }

//   .navbar>.container-fluid .navbar-brand {
//     margin-left: 25px;
//   }
// }

@media screen and (max-width: 1024px) {
  .navbar-header {
    float: none;
  }

  .navbar-left,
  .navbar-right {
    float: none !important;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-collapse {
    border-top: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .navbar-fixed-top {
    top: 0;
    border-width: 0 0 1px;
  }

  .navbar-collapse.collapse {
    display: none !important;
  }

  .navbar-nav {
    float: none !important;
    margin-top: 7.5px;
  }

  .navbar-nav>li {
    float: none;
  }

  .navbar-nav>li>a {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .collapse.in {
    display: block !important;
  }
}

// ipad
@media screen and (max-width:1000px) {
  html {
    font-size: 83px !important;
  }

  #breakfast {
    height: auto !important;

    .item {
      width: 100% !important;
    }

    .item:nth-child(1) {
      padding-bottom: .95rem !important;
    }
  }
}

// 文字间距消失
@media screen and (max-width:820px) {
  #skills {
    .content {
      .text:nth-child(2) {
        margin: 0 !important;
      }
    }
  }
}
// 图片消失
@media screen and (max-width:750px) {
  #skills{
   .content {
    width: 40% !important;
    height: auto !important;
    img{
      display: none;
    }
   }
  }
}

// 弹性居中
@media screen and (max-width:992px) {
  #sponsor {
    .container {
      justify-content: center !important;
    }
  }
}

// 移动端
@media screen and (max-width:600px) {
  html {
    font-size: 50px !important;
  }

  #banner {
    button {
      width: auto !important;
    }
  }

  #icons {
    .row {
      flex-direction: column;
      flex-wrap: wrap;
      align-items: center;

      .item {
        margin: .5rem 0;
        height: 100%;
      }
    }
  }

  #form {
    input {
      height: auto !important;
    }

    button {
      width: auto !important;
    }
  }

  #contact-form{
    button{
      width: auto !important;
      height: auto !important;
    }
    input{
      height: auto !important;
    }
  }

  #footer {
    .items {
      height: auto !important;
    }
  }

}

// 图片消失
@media screen and (max-width:750px) {
  #skills{
   .content {
    width: 40% !important;
    height: auto !important;
    img{
      display: none;
    }
   }
  }
}


// 兼容超小屏幕
@media screen and (max-width:414px) {
  #banner {
    .content {
      p {
        display: none;
      }
    }
  }

  #skills {
    b {
      margin-bottom: 0 !important;
    }

    .item:nth-child(3) {
      margin: 0 !important;
    }
  }
}

// ! 300px 安卓非主流屏幕
@media screen and (max-width:300px) {
  #skills {
    .item {
      display: none !important;
    }

    .more-btn {
      display: block !important;
    }
  }
}